<%@page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.qidian.common.beans.UserBean"%>
<%@page import="com.qidian.common.Globals;"%>
<%
	List<UserBean> list = Globals.getUserList(0,Integer.MAX_VALUE) ;
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>开发者管理页面</title>
	<meta http-equiv="expires" content="0">    
	<script type="text/javascript" src="js/ext-all.js"></script>
  	<script type="text/javascript">
  	var win;	
function onDelete(id)
{
	alert('delete:'+id);
	win = Ext.create('Ext.window.Window', {
        	contentEl: 'dlg',
        	title:'删除用户',
        	width:320,
        	height:400,
        	autoHeight:true,
        	buttonAlign:'center',
        	closeAction:'hide',
	        buttons: [
	        	{text:'提交',handler: function(){
	        			valiDataForm();	        			
	    	    	}
	        	},
	        	{text:'取消',handler: function(){win.hide();}}
	        ]
        });
}
function valiDataForm()
{
}
function onEdit(id)
{
	alert('edite:'+id);
}
</script>
<table style="width:500">
	<tr>
		<td width="25%">用户ID</td>
		<td width="25%">用户名</td>
		<td width="25%">可用点数</td>
		<td width="25%">操作</td>
	</tr>
	<% for (UserBean userBean : list){ %>
	<tr>
		<td width="25%"><%=userBean.getUserId() %></td>
		<td width="25%"><%=userBean.getUserName() %></td>
		<td width="25%"><%=userBean.getLeftPoint() %></td>
		<td width="25%"><button onClick="onDelete(<%=userBean.getUserId() %>)">删除</button></td>
	</tr>
	<%} %>
</table>

